updating oE attr_to_colors

attr_to_colors

include console.e 
default namespace is console 
public function attr_to_colors(integer attr_code) 

Converts an attribute code to its foreground and background color components.

Parameters:
  1. attr_code : integer, an attribute code.
Returns:

A sequence, of two elements -- {fgcolor, bgcolor}

Example 1:
include std/console.e 
 
? attr_to_colors(92)  
Result:

{9,5}

See Also:

get_screen_char, colors_to_attr

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu